package com.dustedpixels.jasmin.chips.z80;

/**
 * The Factory of Z80 instances.
  * <p>
 * Warning: This interface is designed for use by user code, and not for
 * implementation by user code. New methods may be added to this interface in
 * the future. To guarantee forward compability, implementations should extend
 * Z80FactoryImplBase class.
*/
public interface Z80Factory {
    /**
     * Creates an instance of Z80 running in specified context.
     * 
     * @param context The Z80 context.
     * @return The Z80.
     */
    Z80 createZ80(Z80Context context);
}
